package com.qingfeng.provide.controller;

import com.qingfeng.core.dao.qingfeng.FfmanDao;
import com.qingfeng.core.data.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @description: 侠
 * @author:LWY
 * @date: 2017/11/15 16:05
 * @modified:
 */
@RestController
@RequestMapping("/ffman")
public class FfmanController {
    @Autowired
    FfmanDao ffmanDao;

    /**
     * 申请
     *
     * @return
     */
    @RequestMapping("/apply")
    public ResultData apply(HttpServletRequest request) {
        //用户id
        String user_id = request.getParameter("id");
        ffmanDao.apply(user_id);
        return new ResultData(ResultData.SUCCESS, "申请成功,等待审核", "");
    }
}
